<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@include file="head.jsp"%>
<!-- //////////////////////////////////////////////////////////////////////// -->

<!--主体内容-->
<div class="main-layout-body">
	<!--tab 切换-->
	<div class="layui-tab layui-tab-brief main-layout-tab" lay-filter="tab"
		lay-allowClose="true">
		<ul class="layui-tab-title">
			<li class="layui-this welcome">项目管理</li>
		</ul>
		<div class="layui-tab-content">
			<div class="layui-tab-item layui-show" style="background: #f5f5f5;">
				<div class="page-content-wrap">
					<form method="get"
						action="${pageContext.request.contextPath }/back/project/prolist.html">
						<div class="layui-form-item">
							<div class="layui-inline">
								<span>项目名称:</span> <input name="queryProName" type="text"
									value="${queryProName }">
							</div>
							<div class="layui-inline">
								<span>项目状态:</span> <select name="queryProStatus">
									<c:if test="${statusList!=null }">
										<option value="">--请选择--</option>
										<c:forEach var="status" items="${statusList }">
											<option
												<c:if test="${status.id==queryProStatus }">selected="selected"</c:if>
												value="${status.id }">${status.status }</option>
										</c:forEach>
									</c:if>
								</select>
							</div>
							<div class="layui-inline">
								<span>学校名称:</span> <select name="queryProSchool">
									<c:if test="${schoolList!=null }">
										<option value="">--请选择--</option>
										<c:forEach var="school" items="${schoolList }">
											<option
												<c:if test="${school.id==queryProSchool }">selected="selected"</c:if>
												value="${school.id }">${school.schName }</option>
										</c:forEach>
									</c:if>
								</select>
							</div>
							<div class="layui-inline">
								<span>大赛名称:</span> <select name="queryProContest">
									<c:if test="${contestList!=null }">
										<option value="">--请选择--</option>
										<c:forEach var="contest" items="${contestList }">
											<option
												<c:if test="${contest.id==queryProContest }">selected="selected"</c:if>
												value="${contest.id }">${contest.conName }</option>
										</c:forEach>
									</c:if>
								</select>
							</div>

							<input type="hidden" name="pageIndex" value="1" /> <input
								value="查 询" type="submit" class="layui-btn layui-btn-normal">
							<a
								href="${pageContext.request.contextPath}/back/project/add.html"
								class="layui-btn layui-btn-normal" style="margin-left: 150px;">添加项目</a>
						</div>

					</form>
					<div class="layui-form" id="table-list">
						<table class="layui-table" lay-skin="line" cellpadding="0"
							cellspacing="0">
							<tr class="parent collapsed">
								<th width="10%">ID</th>
								<th width="10%">项目编码</th>
								<th width="10">项目名称</th>
								<th width="13%">简介</th>
								<th width="10%">创立时间</th>
								<th width="7%">项目状态</th>
								<th width="10%">所属学校</th>
								<th width="10%">参加大赛</th>
								<th width="20%">操作</th>
								<th width="20%">附件下载</th>e
							</tr>
							<c:forEach var="project" items="${projectList }"
								varStatus="status">
								<tr id='node-1' class="parent collapsed">
									<td class="hidden-xs"><span>${project.id}</span></td>
									<td class="hidden-xs"><span>${project.proCode}</span></td>
									<td class="hidden-xs"><span>${project.proName}</span></td>
									<td class="hidden-xs"><span>${project.details}</span></td>
									<td class="hidden-xs"><span>${project.creationDate}</span>
									</td>
									<td class="hidden-xs"><span>${project.status}</span></td>
									<td class="hidden-xs"><span>${project.schName}</span></td>
									<td class="hidden-xs"><span>${project.conName}</span></td>
									
									<span>
									</span></td>

									<td>
										<div class="layui-inline">
											<a
												href="${pageContext.request.contextPath }/back/project/viewproject/${project.id}"
												class="layui-btn layui-btn-mini layui-btn-normal  add-btn"
												projectid=${project.id }> <i class="layui-icon">&#xe654;</i>
											</a> <a
												href="${pageContext.request.contextPath }/back/project/modifyproject/${project.id}"
												class="layui-btn layui-btn-mini layui-btn-normal  edit-btn"
												projectid=${project.id }> <i class="layui-icon">&#xe642;</i>
											</a> <a
												href="${pageContext.request.contextPath }/back/project/delproject.html?id=${project.id}"
												projectid=${project.id }
												class="layui-btn layui-btn-mini layui-btn-danger del-btn">
												<i class="layui-icon">&#xe640;</i>
											</a>
											
											<a
												href="${pageContext.request.contextPath }/downloadSourceByStorageId?storageId=${project.filePath}"
												class="layui-btn layui-btn-mini layui-btn-danger">下载
												<i class="layui-icon">&#xe640;</i>
											</a>
										</div>
									</td>
								</tr>
							</c:forEach>
						</table>
						<input type="hidden" id="totalPageCount" value="${totalPageCount}" />
						<c:import url="rollpage.jsp">
							<c:param name="totalCount" value="${totalCount}" />
							<c:param name="currentPageNo" value="${currentPageNo}" />
							<c:param name="totalPageCount" value="${totalPageCount}" />
						</c:import>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<!-- //////////////////////////////////////////////////////////////////////// -->




<%@include file="foot.jsp"%>